import request from '@/utils/request'

// 查询短视频列表
export function listShortVideo(query) {
  return request({
    url: '/shortVideo/shortVideo/list',
    method: 'get',
    params: query
  })
}

// 查询短视频详细
export function getShortVideo(id) {
  return request({
    url: '/shortVideo/shortVideo/' + id,
    method: 'get'
  })
}

// 新增短视频
export function addShortVideo(data) {
  return request({
    url: '/shortVideo/shortVideo',
    method: 'post',
    data: data
  })
}

// 修改短视频
export function updateShortVideo(data) {
  return request({
    url: '/shortVideo/shortVideo',
    method: 'put',
    data: data
  })
}

// 删除短视频
export function delShortVideo(id) {
  return request({
    url: '/shortVideo/shortVideo/' + id,
    method: 'delete'
  })
}

// 审核
export function verify(params) {
  return request({
    url: '/shortVideo/shortVideo/verify',
    method: 'get',
    params
  })
}
